<?php
/**
 * 全局定义文件
 * 
 * @file common.inc.php
 * @create 2012-08-02
 * @version v1.0
 * @author veapon 
 * @copyright (C) veapon.com
 */
ini_set('display_errors','on');
error_reporting(E_ALL ^ E_NOTICE);
date_default_timezone_set('PRC');
define('DEBUG',0);
define('__ROOT__',str_replace('\\','/',dirname(__FILE__)).'/');
define('__URL__',str_replace($_SERVER['DOCUMENT_ROOT'],'http://'.$_SERVER['HTTP_HOST'],__ROOT__));
define('__LIB__',__ROOT__.'lib/');
define('__UPLOAD__',__ROOT__.'var/upload/');
define('UPLOAD_URL',__URL__.'var/upload/');

$CONFIGS = include_once(__ROOT__.'config.php');
include_once(__LIB__.'common.func.php');
include_once(__LIB__.'debug/func.php');
include_once(__LIB__.'App.class.php');
